﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Blog.Migrations
{
    public partial class 创建第三方调用表 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SysThirdPartySystemCallLogs",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    TenantId = table.Column<int>(nullable: false),
                    NatrualKeyId = table.Column<Guid>(nullable: true),
                    SourceSystem = table.Column<string>(maxLength: 64, nullable: true),
                    RequestParameters = table.Column<string>(nullable: true),
                    ResponseData = table.Column<string>(nullable: true),
                    ErrorInfo = table.Column<string>(nullable: true),
                    ServiceName = table.Column<string>(maxLength: 256, nullable: true),
                    ClassFullName = table.Column<string>(maxLength: 256, nullable: true),
                    MethodName = table.Column<string>(maxLength: 256, nullable: true),
                    IsSuccess = table.Column<bool>(nullable: false),
                    ThridPartyCallType = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SysThirdPartySystemCallLogs", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SysThirdPartySystemCallLogs");
        }
    }
}
